package cn.icanci.loopstack.ras.common.socket;

import java.io.Serializable;

/**
 * @author icanci
 * @since 1.0 Created in 2023/01/19 18:40
 */
public class RasLoadRequestDTO implements Serializable {
    /**
     * 当前服务id
     */
    private String appId;
    /**
     * 当前服务地址
     */
    private String address;
    /**
     * 当前服务的服务端口
     */
    private int    port;
    /**
     * 负载均衡算法
     */
    private String loadBalance;

    public RasLoadRequestDTO() {
    }

    public RasLoadRequestDTO(String appId, String address, int port, String loadBalance) {
        this.appId = appId;
        this.address = address;
        this.port = port;
        this.loadBalance = loadBalance;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getLoadBalance() {
        return loadBalance;
    }

    public void setLoadBalance(String loadBalance) {
        this.loadBalance = loadBalance;
    }
}
